package work.mediway.mdm.core.enums;

import java.util.HashMap;
import java.util.Map;

import lombok.Getter;
import lombok.Setter;

/**
 * 状态
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2020/12/29
 */
public enum StatusCodingRuleEnum {

    /**
     * 手动维护
     */
    STATUS_CODING_RULE_OP("1", "手动维护"),

    /**
     * 手动维护
     */
    STATUS_CODING_RULE_WA("2", "数字流水码"),

    /**
     * 手动维护
     */
    STATUS_CODING_RULE_CUS("3", "自定义规则")


    // ======================================================================= //
    ;

    public static Map<String, String> map = new HashMap<>();

    static {
        StatusCodingRuleEnum[] values = StatusCodingRuleEnum.values();
        if (values.length > 0) {
            for (StatusCodingRuleEnum categoryEnum : values) {
                map.put(categoryEnum.getStatusCode(), categoryEnum.getStatusDesc());
            }
        }
    }

    StatusCodingRuleEnum(String statusCode, String statusDesc) {
        this.statusCode = statusCode;
        this.statusDesc = statusDesc;
    }

    /**
     * Code
     */
    @Setter
    @Getter
    private String statusCode;

    /**
     * Desc
     */
    @Setter
    @Getter
    private String statusDesc;

}
